package org.example.learnspringbean.service.Impl;

import org.example.learnspringbean.dao.UserDao;
import org.example.learnspringbean.pojo.User;
import org.example.learnspringbean.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserSrviceImpl implements UserService {
    @Resource
    UserDao userDao;
    @Override
    public User findUserByName(String name) {
        return userDao.findByName(name);
    }
}
